Skip to content

Prepend DOI and ARXIV URL origin when adding new url in the form#832

Open
shinyichen wants to merge 2 commits intoadsabs:masterfrom
shinyichen:SCIX-854-DOI-validation
Open

Prepend DOI and ARXIV URL origin when adding new url in the form#832
shinyichen wants to merge 2 commits intoadsabs:masterfrom
shinyichen:SCIX-854-DOI-validation

Conversation

@shinyichen
Copy link
Copy Markdown
Member

Avoid confusion of DOI and arxiv format in the URL by prepending the origin.

Screenshot 2026-03-31 at 2 25 50 PM Screenshot 2026-03-31 at 2 27 15 PM

@shinyichen shinyichen requested a review from thostetler March 31, 2026 21:27
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 31, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 62.5%. Comparing base (006cf95) to head (f48ac98).

Additional details and impacted files
@@           Coverage Diff            @@
##           master    #832     +/-   ##
========================================
+ Coverage    62.5%   62.5%   +0.1%     
========================================
  Files         317     317             
  Lines       36576   36578      +2     
  Branches     1673    1674      +1     
========================================
+ Hits        22827   22838     +11     
+ Misses      13709   13700      -9     
  Partials       40      40             
Files with missing lines Coverage Δ
src/config.ts 100.0% <100.0%> (ø)

... and 2 files with indirect coverage changes

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Copy Markdown
Member

@thostetler thostetler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM -- just a quick question

value: t as string,
}));

const DOI_ORIGIN = 'https://doi.org';
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, however I wonder if there is a case for putting these in our central config src/config.ts ?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@thostetler updated, please check.

@shinyichen shinyichen force-pushed the SCIX-854-DOI-validation branch from 5c4ec02 to f48ac98 Compare April 6, 2026 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants